from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from time import sleep
from postion import options
from postion import service

driver = webdriver.Chrome(options=options,service=service)
driver.get(r'https://www.baidu.com/')
sleep(1)

driver.find_element(By.ID,'kw').send_keys('a6')
driver.find_element(By.ID,'su').click()
sleep(3)
for i in range(4):
    ActionChains(driver).key_down(Keys.PAGE_DOWN).key_up(Keys.PAGE_DOWN).perform()
    sleep(1)
sleep(3)
driver.quit()